package com.yin.myproject.spring.convert.converter;

/**
 * 使用一种转换系统类型注册转换器
 * For registering converters with a type conversion system.
 *
 * @author Eason
 * @create 2018-03-16 22:45
 **/
public interface ConverterRegistry {

    void addConverter(Converter<?, ?> converter);

    <S,T> void addConverter(Class<S> sourceType,Class targetType,Converter<? super S,? super T> converter);

    void addConverter(GenericConverter converter);

    void addConverterFactory(ConverterFactory<?, ?> factory);

    void removeConvertible(Class<?> sourceType, Class<?> targetType);
}
